<?php /* Smarty version Smarty-3.0.9, created on 2013-08-30 17:46:29
         compiled from "C:/xampp1.7/htdocs/glight/templates\lateral.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2595220be55ceff00-04325926%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7676f8be5e8d672f86871b600965ff3e2352c3e0' => 
    array (
      0 => 'C:/xampp1.7/htdocs/glight/templates\\lateral.tpl',
      1 => 1345562381,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2595220be55ceff00-04325926',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (isset($_SESSION['user'])&&$_GET['option']!='logout'){?>
    <div class="square sqlogin">
    <table cellspacing="10"><tr><td class="font-white" align="center">
    <b>Welcome <?php echo $_SESSION['user']['name'];?>
</b><br /><br /><img src="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
images/admin.png" /><br /><br />
    <button onClick="location.href='<?php echo $_smarty_tpl->getVariable('gvar')->value['l_index'];?>
?option=logout'"><?php echo $_smarty_tpl->getVariable('gvar')->value['n_logout'];?>
</button>
    </td></tr></table>
    </div>
<?php }else{ ?>   
    <form action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_index'];?>
?option=login" method="post" name="login">
    <div class="square sqlogin">
    <table cellspacing="10"><tr><td class="font-white" align="center">
    <b><a name="login"><?php echo $_smarty_tpl->getVariable('gvar')->value['n_login'];?>
</a></b><br /><br />
    <b>User:</b><br> <input size="18" name="user" required="required" type="text"><br />
    <b>Password:</b><br> <input size="18" name="password" required="required" type="password"><br /><br />
    <input value="Login" type="submit" />
    </td></tr></table>
    </div>
    </form>
<?php }?>
<br />

<table class="left" cellpadding="0" cellspacing="0">
<tr><td align="left" valign="middle"> 
<ul class="ul_lateral">
    <li><a href="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_index'];?>
" class="menu_lateral"><?php echo $_smarty_tpl->getVariable('gvar')->value['n_index'];?>
</a></li>
    <li><a href="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_contact'];?>
" class="menu_lateral"><?php echo $_smarty_tpl->getVariable('gvar')->value['n_contact'];?>
</a></li>
</ul>
</td></tr></table>